@import "common";
@import "color";
body {
  background-color: #fbfbfb;
}

.cart {
  .empty {
    width: 100%;
    margin: 50% auto;
    text-align: center;

    p {
      font-size: .752em;
      span:last-child {
        color: #1976d2;
      }
    }
  }
  div {
    ul {
      padding-bottom: 100px;
      li {
        background-color: white;
        margin-bottom: 8px;
        border-bottom: 1px solid #ddd;
        padding: 0 3%;
        @extend %boxSizing;
        padding-top: 18px;
        .box {
          width: 100%;
          height: 100px;
          overflow: hidden;
          .boxLeft {
            width: 40%;
            height: 100%;
            float: left;
            .circle {
              position: relative;
              float: left;
              width: 15px;
              text-align: left;
              height: 100%;
              .bg {
                top: 30%;
                left: 0;
                position: absolute;
                display: block;
                height: 15px;
                width: 15px;
                background: url("../images/circle2.png");
                background-size: cover;
              }
              .white {
                background: url("../images/circle2.png");
                background-size: cover;
              }
              .blue {
                background: url("../images/circle.png");
                background-size: cover;
              }
            }
            .product {
              margin-left: 10px;
              float: left;
              max-width: 89px;
              margin-right: 6px;
              img {
                width: 100%;
              }
            }
          }
          .boxEdit {
            width: 60%;
            position: relative;
            //height: 100%;
            float: left;
            padding-top: 18px;
            .goods-name {
              font-size: 1.1em;
              color: #333;
            }
            p:nth-of-type(1) {
              margin-top: 4px;
              font-size: 0.68em;
              span:nth-of-type(1) {
                color: #a1a1a1;
              }
              span:nth-of-type(2) {
                color: #333;
              }
            }
            p:nth-of-type(2) {
              margin-top: 5px;
              color: #666;
              font-size: 0.752em;
              span:nth-of-type(2) {
                font-size: 1.125em;
                color: #f13b3b;
                margin-left: 0.2em;
                margin-right: 0.2em;
              }
            }
            a.edit {
              position: absolute;
              right: 0;
              top: 0px;
              text-align: center;
              border: 1px solid #3e6ee0;
              border-radius: 2px;
              color: #3e6ee0;
              font-size: 0.9em;
              width: 44px;
              height: 20px;
              line-height: 20px;
            }
          }
          .boxEnd {
            width: 60%;
            position: relative;
            //height: 100%;
            float: left;
            padding-top: 22px;
            p {
              font-size: 0.752em;
              color: #333;
            }
            .numberSelect {
              margin-top: 0.6667em;
              height: 19px;
              width: 83px;
              background: url("../images/fuhao.png") no-repeat;
              background-size: cover;
              span {
                float: left;
                width: 25%;
                height: 100%;
              }
              span:nth-of-type(2) {
                width: 50%;
                line-height: 19px;
                font-size: 0.82em;
                text-align: center;
                color: #333;
              }
            }
            .choose {
              position: absolute;
              top: 6px;
              right: 0;
              a {
                text-align: center;;
                border-radius: 0.1em;
                color: #3e6ee0;
                font-size: 0.9em;
                width: 50px;
                height: 20px;
                line-height: 20px;
              }
              a:nth-of-type(1) {
                float: left;
                border: 1px solid #666;
                color: #666;
              }
              a:nth-of-type(2) {
                margin-left: 0.26667em;
                float: right;
                border: 1px solid #3e6ee0;
                color: #3e6ee0;
              }
            }
          }

        }
      }
      li:nth-of-type(n+1) {
        border-top: 1px solid #ddd;
      }
    }
    .cartBottom {
      height: 50px;
      width: 100%;
      position: fixed;
      left: 0;
      bottom: 0;
      background-color: #ffffff;
      border-top: 1px solid #ddd;
      z-index: 1000;
      div {
        height: 100%;
        width: 100%;
        &.bottom-box {
          overflow: hidden;
        }
        div.selectBtn {
          float: left;
          width: 70%;
          line-height: 52px;
          overflow: hidden;
          div {
            float: left;
          }
          div:nth-of-type(1) {
            width: 16%;
            height: 100%;
            text-align: center;
            .checkAll {
              width: 15px;
              height: 15px;
              display: block;
              margin: 17.5px auto;
            }
            .white {
              background: url("../images/circle2.png");
              background-size: cover;
            }
            .blue {
              background: url("../images/circle.png");
              background-size: cover;
            }
          }
          div:nth-of-type(2) {
            width: 18%;
            label {
              font-size: 0.92em;
              color: #333;
            }
          }
          div:nth-of-type(3) {
            width: 62%;
            font-size: 0.752em;
            text-align: right;
            .cart-total {
              font-size: 1.25em;
              color: #f13b3b;
            }
          }
        }
        .to-buy-btn {
          width: 30%;
          line-height: 50px;
          float: right;
          background-color: #3f6ee0;
          text-align: center;
          color: white;
          font-size: 1.08em;
        }

      }
    }
  }
}

.hidden {
  display: none;
}

.show {
  display: block;
}

.goods-activity-item {
  width: 100%;
  height: 100px;
  border-top: 1px dashed #dddddd;
  .body {
    position: relative;
    width: 100%;
    overflow: hidden;
    .goods-img {
      width: 40%;
      //margin-left: 25px;
      float: left;
      //margin-right: 6px;
      img {
        max-width: 89px;
        margin-left: 25px;
        margin-right: 6px; 
        display: block;
        width: 100%;
      }
    }
    .goods-name {
      width: 54%;
      float: left;
      font-size: 1.1em;
      padding-top: 5%
    }
    .icon {
      position: absolute;
      top: 0px;
      right:50px;
      display: inline-block;
      padding-top: 5.8%;
      img {
        width: 40px;
        height: 16px;
      }
    }
    .goods-price {
      width: 40%;
      float: left;
      color: #666;
      padding: 2% 0;
      font-size: 0.752em;
      span {
        font-size: 1.125em;
        color: #f13b3b;
        margin-left: 0.2em;
        margin-right: 0.2em;
      }
    }
    .spec {
      width: 40%;
      float: left;
      color: #a1a1a1;
      font-size: 0.68em;
      margin-top: 4px;
      span {
        color: #333;
      }
    }
    .counter-box {
      width: 40%;
      float: left;
      .counter-title {
        font-size: 0.752em;
        color: #333;
        padding-top: 22px;
      }
      .counter {
        height: 22px;
        margin-top: 11.5px;
        overflow: hidden;
        padding-bottom: 0;
        li {
          text-align: center;
          float: left;
          border: none;
          padding: 0;
          margin: 0;
          &:nth-child(1),&:nth-child(3){
            width : 20px;
            height : 20px;
            line-height : 20px;
            font-size: 0.752em;
            color: $mafu-text-blue;
            border: 1px solid #8e9ee9;
           border-radius: 4px;
            cursor: pointer;
          }
          &:nth-child(2){
            width: 33px;
            height: 22px;
            line-height: 22px;
            margin-left : 4px;
            margin-right : 4px;
            background-color: rgba(63,110,224,.1);
            font-size: 0.752em;
            border-radius: 5px;
          }
        }
      }
    }
  }
}




